package session07.guessnumber;

import javax.swing.*;
import java.awt.*;

public class UpPanel extends JPanel {

    private JTextField inputTxt;

    public UpPanel(){
        this.setBackground(Color.GRAY);
        this.setLayout(null);

        this.inputTxt = new JTextField();
        this.inputTxt.setBounds(100,60,100,30);
        this.add(this.inputTxt);

        this.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.RED,5),"你的猜测"));
    }
}
